import Vue from 'vue'
import VueRouter from 'vue-router'
import BinHai from '../components/BinHai.vue'
import ChaShan from '../components/ChaShan.vue'
import YueQing from '../components/YueQing.vue'
import Student from '../components/Student.vue'
import Login from '../components/Login.vue'

Vue.use(VueRouter)

const routes = [
  {  
    path: '/',  
    name: 'binhai',  
    component: BinHai
  },  
  {  
    path: '/chashan',  
    name: 'chashan',  
    component: ChaShan  
  },  
  {  
    path: '/yueqing',  
    name: 'yueqing',  
    component: YueQing  
  },  
  {  
    path: '/login',  
    name: 'login',  
    component: Login  
  },  
  {  
    path: '/student',  
    name: 'student',  
    component: Student
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router;
